package com.htgd.gardenexpo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ge_con_gisresource")
@ApiModel(value="GeConGisresource对象", description="地理信息资源表")
public class GeConGisresource implements Serializable {

    private static final long serialVersionUID = -57448127644577731L;

    @ApiModelProperty(value = "gis资源ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer gisId;

    @ApiModelProperty(value = "名称")
    private String gisTitle;

    @ApiModelProperty(value = "坐标")
    private String coordinate;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "图文简介")
    private String gisDescrition;

    @ApiModelProperty(value = "音视频连接")
    private Integer pathUrl;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(shape = JsonFormat.Shape.NUMBER, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "添加者id")
    private Integer createUserId;

    @ApiModelProperty(value = "作者")
    @TableField(exist = false)
    private String createUser;

    @ApiModelProperty(value = "gis服务资源类id")
    private Integer gisResourceTypeId;

    @ApiModelProperty(value = "0.正常 1.删除")
    private Integer delFlag;

    @ApiModelProperty(value = "属性")
    private Integer attribute;

    @ApiModelProperty(value = "停车场id")
    private String parkId;

    @ApiModelProperty(value = "上传文件的ID(以英文,隔开)")
    private String uploadIds="";

    @ApiModelProperty(value = "标记缩放")
    private Integer zoom;

    @ApiModelProperty(value = "是否推荐 '0':否，'1':是")
    @TableField(exist = false)
    private String recommendType;

    @ApiModelProperty(value = "是否置顶 0.否 1.是")
    @TableField(exist = false)
    private Integer isTop;

    @ApiModelProperty(value = "图文简介")
    private String introduction;

    @ApiModelProperty(value = "经度")
    private String vat;

    @ApiModelProperty(value = "纬度")
    private String von;

    private String filePath;

    @ApiModelProperty(value = "总车位数")
    private long totalLot;

    @ApiModelProperty(value = "剩余车位数")
    private long leftLot;

}
